package com.zhixing.order.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus {
    WAIT(0, "待接单"),
    RECEIVE(1, "已接单"),
    PERFORM(2, "进行中"),
    PAYMENT(3, "待付款"),
    COMPLETE(4, "已完成"),
    CANCEL(5, "已取消");

    @JsonValue
    @EnumValue
    private final int value;
    private final String desc;
}
